<div xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:menu="urn:jsptagdir:/WEB-INF/tags/menu" xmlns:security="http://www.springframework.org/security/tags" id="menu" version="2.0">
<%@ taglib uri="/WEB-INF/tags/c.tld" prefix="c" %>	
<%@ taglib uri="/WEB-INF/tags/fn.tld" prefix="fn" %>	
<%@ taglib uri="/WEB-INF/tags/fmt.tld" prefix="fmt" %>	
<%@ taglib uri="/WEB-INF/tags/spring.tld" prefix="spring" %>	
<%@ taglib uri="/WEB-INF/tags/spring-form.tld" prefix="form" %>

<spring:hasBindErrors name="kurancyCreatedSearchForm">
	<h3>You have errors in your input!</h3>
	<font color="red">
	    <c:forEach items="${errors.allErrors}" var="error">
	    	<spring:message code="${error.code}" text="${error.defaultMessage}"/>
		</c:forEach>
	</font>
</spring:hasBindErrors>

<div>IOU's powered by YOU.</div>

<br/>

<div>
	<h1><spring:message code="get.my.money"/></h1>
	<form:form commandName="searchForm">
		<form:input path="kurancyToken" title="Kurancy Code" maxlength="9"/>
		<br/>
		<br/>
		<p><input type="submit" class="button-style" value='<spring:message code="get.my.money.search"/>'/></p>
	</form:form>
</div>

<br/>

<security:authorize ifNotGranted="ROLE_USER">
	<div>
		<a title="Login in via Facebook" href="/requestFBAuth"><img src="/images/fb_connect.png"/></a>
		<span id='fb-or'> or </span> 
		<a title="Register via Facebook" href="/requestFBAuth"><img src="/images/fb_register.png"/></a>
		<br/>
		<br/>
		<div class="fb-like" data-href="http://www.kurancy.com" data-send="true" data-width="341" data-show-faces="true" data-font="arial"></div>
	</div>

	<div id="fb-root"></div>
	<script>(function(d, s, id) {
	  var js, fjs = d.getElementsByTagName(s)[0];
	  if (d.getElementById(id)) return;
	  js = d.createElement(s); js.id = id;
	  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
	  fjs.parentNode.insertBefore(js, fjs);
	}(document, 'script', 'facebook-jssdk'));</script>
</security:authorize>